function Point(object, y)
{
	
	var _x;
	var _y;
	
	this.getX = function()
	{
		return _x;
	}
	
	this.setX = function(value)
	{
		_x = value ? Math.toInt(value) : 0;
	}
	
	this.getY = function()
	{
		return _y;
	}
	
	this.setY = function(value)
	{
		_y = value ? Math.toInt(value) : 0;
	}
	
	this.set = function(object, y)
	{
		if (object instanceof Point)
		{
			this.setX(object.getX());
			this.setY(object.getY());
		}
		else
		{
			this.setX(object);
			this.setY(y);
		}
	}
	
	this.empty = function()
	{
		this.setX(0);
		this.setY(0);
	}
	
	this.set(object, y);
	
}